import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo:{
        avatar: "http://user.miyun.info/static/images/avatar.png",
        balance: "0.00",
        coin: 0,
        id: 13,
        is_email: 0,
        is_mobile: 0,
        is_password: 0,
        level: 0,
        mobile: "15245684561",
        nickname: "一顿胖三斤",
        platform: 3,
        score: 0,
        total_amount: "0.00",
        username: "一顿胖三斤",
        is_loginEd:false
    }
  },
  mutations: {
    //https://blog.csdn.net/weixin_43787528/article/details/87919302
    updateU_Info(state,val){
      state.userInfo=val; 
    }
  },
  actions: {
  },
  modules: {

  }
})
